Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference
checkUser
This procedure authenticates the passed-in user or company identities.
Because you always want to use the latest information to authenticate the user who is trying to log in, this procedure does not cache. The following checks are made on the user details entered:
- Checks if the user is valid and, if it is not, returns an error stating that an invalid login name was specified.
- Checks if the account has been disabled and, if it has, returns an error.
- Checks if the category of user has been disabled and, if it has, returns an error.
- If a password was entered, checks that the password is valid for the user. If the password is not valid, then the fail count is updated on the user record. If this exceeds the maximum retries, the account is additionally disabled and the retries reset back to 0.
- If a valid password is entered, the fail count is reset, and the login details updated on the user.
Location: af\app\afsecmngrp.i Parameters:- If the user password has expired, then this fact is returned to the login window. The login window should prompt for a new password before proceeding with the login. If this fails, the login is aborted.
INPUT pcLoginName AS CHARACTERThe user login name.
INPUT pcPassword AS CHARACTERThe encoded user password.
INPUT pdCompanyObj AS DECIMALThe login company
objspecified.INPUT pdLanguageObj AS DECIMALThe language
objspecified.OUTPUT pdUserObj AS DECIMALThe login user object number.
OUTPUT pcUserName AS CHARACTERThe user full name.
OUTPUT pcUserEmail AS CHARACTERThe user e-mail.
OUTPUT pcOrganisationCode AS CHARACTERThe organization code.
OUTPUT pcOrganisationName AS CHARACTERThe organization name.
OUTPUT pcOrganisationShort AS CHARACTERThe organization short name.
OUTPUT pcLanguageName AS CHARACTERThe language name.
OUTPUT pcError AS CHARACTERAny failure reason (standard Progress Dynamics-formatted error).
Notes: None Examples: See theauthenticateUserfunction inry\app\ryreqsrvrp.p.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |